package com.example.demo.utils;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.sql.Date;
@TableName("Car")
public class Car {
    @TableId(value = "carID", type = IdType.INPUT)
    private String carID;
    @TableField("carModelID")
    private String carModelID;
    @TableField("productionDate")
    private Date productionDate;
    @TableField("licensePlateNumber")
    private String licensePlateNumber;
    @TableField("carCondition")
    private String carCondition;
    @TableField("carStatus")
    private String carStatus;
    @TableField("storeID")
    private String storeID;

    public CarModel getCarModel() {
        return carModel;
    }

    public void setCarModel(CarModel carModel) {
        this.carModel = carModel;
    }

    // 引入CarModel类作为关联对象
    @TableField(exist = false) // 表示这个字段在数据库表中不存在，用于存放关联查询的结果
    private CarModel carModel;

    public String getCarID() {
        return carID;
    }

    public void setCarID(String carID) {
        this.carID = carID;
    }

    public String getCarModelID() {
        return carModelID;
    }

    public void setCarModelID(String carModelID) {
        this.carModelID = carModelID;
    }

    public Date getProductionDate() {
        return productionDate;
    }

    public void setProductionDate(Date productionDate) {
        this.productionDate = productionDate;
    }

    public String getLicensePlateNumber() {
        return licensePlateNumber;
    }

    public void setLicensePlateNumber(String licensePlateNumber) {
        this.licensePlateNumber = licensePlateNumber;
    }

    public String getCarCondition() {
        return carCondition;
    }

    public void setCarCondition(String carCondition) {
        this.carCondition = carCondition;
    }

    public String getCarStatus() {
        return carStatus;
    }

    public void setCarStatus(String carStatus) {
        this.carStatus = carStatus;
    }

    public String getStoreID() {
        return storeID;
    }

    public void setStoreID(String storeID) {
        this.storeID = storeID;
    }
}
